<template>
  <el-container class="login">
    <el-form ref="form" :model="form" label-width="auto" size="small" label-position="right" :rules="rules">
      <el-form-item prop="userName" class="form-item">
        <el-input v-model="form.userName" placeholder="请输入用户名" clearable></el-input>
      </el-form-item>
      <el-form-item prop="password" class="form-item">
        <el-input type="password" v-model="form.password" placeholder="请输入密码" clearable></el-input>
      </el-form-item>
      <el-form-item prop="againPassword" class="form-item">
        <el-input type="password" v-model="form.password" placeholder="再次请输入密码" clearable></el-input>
      </el-form-item>
      <el-form-item class="form-item">
        <el-button type="primary" @click="register('form')" style="width: 100%" :loading="buttonLoading">账号注册</el-button>
      </el-form-item>
    </el-form>
  </el-container>
</template>

<script>
export default {
  name: "WechatRegister"
}
</script>

<style scoped>

</style>